package com.groupfive.feign.client;

import com.groupfive.feign.config.FeignClientConfiguration;
import com.groupfive.pojo.Account;
import com.groupfive.pojo.Admin;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "admin-service", configuration = FeignClientConfiguration.class)
public interface AdminClient {
    @PostMapping("/admin/login")
    Admin login(@RequestBody Account account);

    @PutMapping("/admin/updatePassword")
    void updatePassword(@RequestBody Account account);
}
